for $t in document("books.xml")//title
where ends-with($t/text(), "XML")
return $t
 


